package com.wsc.springbootmultidevdemo.service.impl;

import com.wsc.springbootmultidevdemo.service.MulDevService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class MulDevServiceImpl implements MulDevService {

    @Override
    public String restTemp() {
        int count = 0;
        String msgs = "";
        while (true){
                count++;
                List<String> list = new ArrayList<>();
                list.add("restTemplate test while count = "+count+"------");
                for (String msg :list){
                    msgs +=msg+"\n";
                }
                if (count == 5){
                    break;
                }

        }
        return msgs;
    }
}
